Tangoe Telecom SOAP API
> Invoice
updateInvoiceFromInventory()
The method updates all invoice bills that contain the provided inventory number for the provided service type ID. For each such bill it is updated the cost center, GL Accout, Fixed Allocation and also the exceptions are recomputed. The structure of the used objects may be observed in the appendix section of this document. The format of the request and response messages is the following:
Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inv="http://www.asentinel.com/asentinelws/schemas/invord">
<soapenv:Header/>
<soapenv:Body>
<inv:UpdateInvoiceFromInventoryRequest>
<!--You may enter the following 2 items in any order-->
<inv:serviceTypeID>?</inv:serviceTypeID>
<inv:inventoryNumber>?</inv:inventoryNumber>
</inv:UpdateInvoiceFromInventoryRequest>
</soapenv:Body>
</soapenv:Envelope>
Response:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inv="http://www.asentinel.com/asentinelws/schemas/invord">
<soapenv:Header/>
<soapenv:Body>
<inv:UpdateInvoiceFromInventoryResponse>
<inv:result>
<!--You may enter the following 2 items in any order-->
<inv:code>?</inv:code>
<!--Optional:-->
<inv:message>?</inv:message>
</inv:result>
</inv:UpdateInvoiceFromInventoryResponse>
</soapenv:Body>
</soapenv:Envelope>
Notes:
Errors:
- Message validation error - SOAP fault message (see dedicated section for more details);
- Data validation error – situations:
- an inventory item could not be found for the provided service type id and inventory number;
- Operation error, if a database error occurs.